Return to doc.sitecore.com

Documentation

This extension allows removing the version of an Item which was created last. The Undo Edit button appears on the toolbar when a new version of an Item is created.

With this button users can delete newly created Items or remove workflow Item versions created by pressing the Edit button on the toolbar.

1.  Installation

The File Xsl Extension is distributed as a standard Sitecore package. Thus to start using it, you should install the package. Please refer to the Installing Modules and Packages article if you are not familiar with the standard Sitecore Packager tool.

The package adds UndoEdit.dll to the bin folder of your site and the Undo Edit command to /sitecore/content/system/commands.

Setting up a new command:

2.  User Manual

The Undo Edit button appears on the toolbar when a new version of an Item is created. The button remains in place until the Item is checked-in or moved to another workflow step.

The command behaves in the following way:

Example 1:

  1. Log in as an Editor User.
     
  2. Create an item.
     
  3. Select the newly created item.
     
  4. Click the Undo Edit button on the toolbar.
     
  5. You will see the delete item confirmation dialog.
     
  6. Confirm your choice (the item will be deleted).

Example 2:

  1. Create an Item with workflow.
     
  2. Log in as a User with administrator privileges. Move the item through all workflow steps.
     
  3. Log in as a non-administrator user.
     
  4. Navigate to the Item and click the Edit toolbar button. A new version will be created for editing.
     
  5. Click the Undo Edit button on the toolbar.
     
  6. You will see the delete item version confirmation dialog. Confirm your choice (the last item version will be deleted).